import 'package:flutter/material.dart';

class PageViewDetail extends StatelessWidget {
  const PageViewDetail({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('PageView示例'),
      ),
      body: Center(
          child: Column(mainAxisSize: MainAxisSize.min, children: [
        ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/page_example');
            },
            child: const Text('上下翻屏')),
        ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/page_load_more');
            },
            child: const Text('上拉加载')),
            ElevatedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/pageViewSwiper');
            },
            child: const Text('轮播图'))
      ])),
    );
  }
}
